﻿@model ReadModel.ViewModels.NoteDetails
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Details</title>
</head>
<body>
    <div>
        <table>
            <tr>
                <td>
                    Text:
                </td>
                <td>@Model.Text
                </td>
            </tr>
            <tr>
                <td>
                    Importance:
                </td>
                <td>@Model.Importance
                </td>
            </tr>
        </table>
        <hr />
        <h3>
            Change importance</h3>
        @{Html.RenderAction("ChangeImportance", new { noteId = Model.NoteId });}
        <br />
        @Html.ActionLink("back to home", "Index")
    </div>
</body>
</html>
